package com.jic.order.controller.manage;

import com.jic.common.base.vo.PageResult;
import com.jic.common.base.vo.RestResult;
import com.jic.order.entity.OrderBaleDelivery;
import com.jic.order.entity.OrderDeliver;
import com.jic.order.manage.request.OrderBaleDetailRequest;
import com.jic.order.manage.response.OrderBaleDetailResponse;
import com.jic.order.service.OrderBaleDeliveryService;
import com.jic.order.service.OrderBaleDetailService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by HeJun on 2020/2/29
 *
 * @Description:
 */
@Api(tags = "包裹列表详情")
@RestController
@RequestMapping("/orderBaleDetail")
@Slf4j
public class OrderBaleDetailController {

    @Autowired
    OrderBaleDetailService orderBaleDetailService;

    @ApiOperation(value = "获取包裹列表详情信息")
    @PostMapping("/queryPage")
    public RestResult<PageResult<OrderBaleDetailResponse>> queryPage(@RequestBody OrderBaleDetailRequest obdr) {
        PageResult<OrderBaleDetailResponse> result = orderBaleDetailService.queryPage(obdr);
        return RestResult.success(result);
    }

}

